import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2024-10-26
 * Time:14:39
 */
public class Test {
    public static void main1(String[] args) {
        Scanner scan=new Scanner(System.in);
        while (scan.hasNextLine()){
            String s=scan.nextLine();
            String ret=fun(s);
            System.out.println(ret);
        }
    }

    public static String fun(String str) {
        String string="";
        for (int i = 0; i < str.length(); i++) {
            char ch=str.charAt(i);
            if(!string.contains(ch+"")){
                string+=ch;
            }
        }
        return (string);
    }

    public int[] merge (int[] A, int m, int[] B, int n) {
        int i = m-1;
        int j = n-1;
        int k=m+n-1;
        //谁大把谁移到K里面
        while (i>=0&&j>=0){
            if(i>j){
                A[k]=A[i];
                k--;
                i--;
            }else {
                A[k]=B[j];
                k--;
                j--;
            }
        }
        //谁先走完了，把剩下的元素移到A数组里面。
        while (i>=0){
            A[k]=A[i];
            k--;
            i--;
        }
        while (j>=0){
            A[k]=B[j];
            k--;
            j--;
        }
        return A;
    }
}

